package day04.Single_Class;

/*
*   饿汉式 单例类
* */

public class Single_way2 {
    private static final Single_way2 single = new Single_way2();

    private Single_way2()
    {

    }

    public static synchronized Single_way2 getInstance()
    {
        return single;
    }
}
